//
//  TingshuoTestCollectionViewCell.h
//  Learn
//
//  Created by  on 2024/4/13.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CircleProgressView.h"
#import "TextbookQuestionsModel.h"


@class HSItem;
typedef void(^ReadFinishBlock)(HSItem *  __nullable model);
NS_ASSUME_NONNULL_BEGIN

@interface TingshuoTestCollectionViewCell : UICollectionViewCell<UITableViewDelegate, UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (nonatomic, strong) HSItem *model;
@property (nonatomic, strong) HSPart *modelAnswer;
@property (nonatomic, strong) NSString *resmain;
@property (nonatomic, copy) ReadFinishBlock readFinishBlock;
@property (nonatomic, strong) UILabel *timeL;
@property (nonatomic, strong) UIView *bottomView;
@property (nonatomic, strong) CircleProgressView *progressView;
@property (nonatomic, strong)UIImageView *statuesImg;
@property (nonatomic,strong) IFlyDetection *detection;//评测对象
@property (nonatomic, strong) UIButton *nextBtn;

@property (nonatomic, strong) NSString *playingText;

@property (nonatomic, assign) answer_step step;

@property (nonatomic, assign) int questionIsDoingIndex;//正在第几题

@property (nonatomic, assign) int isDoingSubQuestionIndex;//正在第几题

@property (nonatomic, assign) double currentReadTime;//正在读第几遍

@property (nonatomic, strong) NSMutableArray<HSQuestion *> *  __nullable questions;

@property (nonatomic, strong) HSQuestion *  __nullable showQuestion;

- (void)startTest;

-(void)clickToNext;

- (void)stop;
@end

NS_ASSUME_NONNULL_END
